@import "./theme.scss";
@import "./slot.scss";
@import "./modal.scss";
@import "./tooltop.scss";
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: color 300ms, background-color 300ms; //主题色切换时候的过度效果
}
body,
html {
  //不放在*号中否则表单提示信息回错位
  // overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: rgba(147, 197, 253, 0.2);
}

:where(.css-dev-only-do-not-override-e59m8p).ant-layout {
  background-color: rgba(147, 197, 253, 0.2);
}

.flex {
  display: flex;
}
.center {
  justify-content: center;
  align-items: center;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.r-margin {
  margin-right: 15px;
}

.l-margin {
  margin-left: 15px;
}

// 两种过度效果
.fade-enter {
  transform: translate(100%, 0);
  opacity: 0;
  transition: all 300ms;
}

.fade-enter-active {
  transform: translate(0, 0);
  opacity: 1;
  transition: all 300ms;
}

.fade-exit {
  transform: translate(0, 0);
  opacity: 1;
  transition: all 300ms;
}

.fade-exit-active {
  transform: translate(-100%, 0);
  opacity: 0;
  transition: all 300ms;
}

.page-enter {
  opacity: 0;
  transform: scale(1.1);
}

.page-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms, transform 300ms;
}

.page-exit {
  opacity: 1;
  transform: scale(1);
}

.page-exit-active {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms, transform 300ms;
}

#nprogress .bar {
  background: #333 !important; //自定义颜色
}

.hover {
  &:hover {
    cursor: pointer;
  }
}
/* 自定义滚动条样式 */
.cus-scroll {
  overflow: auto;
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}
.cus-scroll-x {
  overflow-x: auto;
  &::-webkit-scrollbar {
    width: 0;
    height: 8px;
  }
}
.cus-scroll-y {
  overflow-y: auto;
  &::-webkit-scrollbar {
    width: 8px;
    height: 0;
  }
}
.cus-scroll,
.cus-scroll-x,
.cus-scroll-y {
  &::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
  }
  &:hover {
    &::-webkit-scrollbar-thumb {
      background: #bfbfbf;
    }
    &::-webkit-scrollbar-thumb:hover {
      background: var(--primary-color);
    }
  }
}

.my-icon {
  cursor: pointer;
  transition: 0.3s;
  &:hover {
    transform: scale(1.5);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 0;
}
::-webkit-scrollbar-track {
  background-color: #fff;
}
::-webkit-scrollbar-thumb {
  background-color: #bfbfbf;
  border-radius: 4px;
}
